﻿@model List<WebApplication3.Models.Person>
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
    
</head>
<body>
  <table>
      <thead>
          <tr>
          <th>Name</th>
          <th>HireDate</th>
          <th>EnrollmentDate</th>
          <th>Detail</th>
          <th>Delete</th>
          </tr>
      </thead>
      <tbody>
          @foreach (var item in Model)
          {
              <tr>
                  
           <td>@item.FirstName @item.LastName </td>
                  <td>@item.HireDate</td>
                  <td>@item.EnrollmentDate</td>
                  <td><a href="Detail/@item.PersonID">Detail</a></td>
                  <td><a href="Delete/@item.PersonID">Delete</a></td>
              </tr>
          }
      </tbody>
  </table>
</body>
</html>
